package com.oo.polymorphic_4.computer;

/**
 * NoteBook--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 16:59
 **/
public class NoteBook extends Computer {
    private String battery;

    public NoteBook(String name, String brand, String type, String monitor, String battery) {
        super(name, brand, type, monitor);
        this.battery = battery;
    }

    public NoteBook() {
    }

    @Override
    public void info() {
        System.out.println("详细清单（笔记本）\n名称："
        +this.getName()+"\n品牌："
        +this.getBattery()+"\n处理器类型："
        +this.getType()+"\n显示器："
        +this.getMonitor()+"\n电池类型："
        +this.getBattery());
    }

    public String getBattery() {
        return battery;
    }

    public void setBattery(String battery) {
        this.battery = battery;
    }
}
